<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	List<TblOaSoft> list = (List<TblOaSoft>)request.getAttribute("list");
	String isBJ = (String)request.getAttribute("isBJ");
	SoftForm form = (SoftForm)request.getAttribute("command");
%>

<table class="tableList">
	<tbody>
		<tr id="tableHeader">
			<th style="width: 17%;">软件名称</th>
			<th style="width: 30%;">软件说明</th>
			<th style="width: 8%:">大小</th>
			<th style="width: 8%;">发布人</th>
			<%if("1".equals(isBJ)){ %>
			<th style="width: 10%;">可见区域</th>
			<%} %>
			<th style="width: 16%;">发布时间</th>
			<th style="width: 10%;"></th>
		</tr>
		<%
			if(!CollectionUtils.isEmpty(list)){
				StringBuilder recRegin = new StringBuilder();
				for(TblOaSoft coreFile:list){
					recRegin = new StringBuilder();
					if("1".equals(isBJ)){
						if("1".equals(coreFile.getToZB())){
							recRegin.append("广东区 ");
						}
						if("1".equals(coreFile.getToZJ())){
							recRegin.append("浙江区 ");
						}
						if("1".equals(coreFile.getToFJ())){
							recRegin.append("福建区");
						}
					}
					%>
					<tr class="down">
						<td style="text-align: left; padding-left: 2px;"><%=coreFile.getFileName() %></td>
						<td style="text-align: left; padding-left: 10px;">
							<%=coreFile.getFileDesc() %>
						</td>
						<td><%=(null!=coreFile.getFileSize())?coreFile.getFileSize():"0"%>M  </td>
						<td><%=StringUtils.isNotBlank(coreFile.getPublicMan())?coreFile.getPublicMan():""%></td>
						<%if("1".equals(isBJ)){ %>
						<td><%=StringUtils.isNotBlank(recRegin.toString())?recRegin.toString():""%></td>
						<%} %>
						 <td >
						<%=null!=coreFile.getPublicDate()?DateFormatUtils.format(coreFile.getPublicDate().getTime(), "yyyy-MM-dd HH:mm:ss"):"" %></td>
						<td><div><a style="color:#FFFFFF;" class="a-btn-microsoft"  href="<%=request.getContextPath()%>/filextra/<%=coreFile.getDownfileName() %>">下载</a></div></td>
					</tr>
					<%
				}
			}
		%>
		<tr>
		<%
			for(int i=0;i<7;i++){
				%><td style="height:0"/><%
			}
		%>
		</tr>
	</tbody>
 	<tfoot>
		<tr id="tableFooter">
			<td colspan="5">
				<div class="pagination">
					<div style="width:1px">&nbsp;</div>
					<monggoTag:pagination href="soft_search"
						pageSize="<%=form.getPageSize()%>"
						totalRecord="<%=form.getTotalRecord() %>"
						currentPage="<%=form.getPageNum() %>">
					</monggoTag:pagination>
				</div>
			</td>
		</tr>
	</tfoot>  
</table>

<script type="text/javascript">
	$(function() {
		XF.Soft.init();
		XF.Soft.init_css();
	});
</script>
































